<template>
  <div>
    <div class="applyImg"><img src="https://static.daoyintech.com/zs.jpg" mode="widthFix"></div>
    <div class="applyName">
      <span >{{comUserInfo.nickName}}</span>
      <!-- <span >小鱼小鱼小鱼小鱼小鱼小鱼小鱼小鱼小鱼</span> -->
    </div>
  </div>
</template>
<script>
  export default {
    onShareAppMessage: (res) => {//分享给朋友
      if (res.from === 'button') {
        console.log("来自页面内转发按钮");
      }
      else {
        console.log("来自右上角转发菜单")
      }
      return {
        title: '申请堂主',
        path: `/pages/user-applyagent/main?notMe=true`,
        imageUrl: "",
        success: (res) => {
          console.log("转发成功", res);
        },
        fail: (res) => {
          console.log("转发失败", res);
        }
      }
    },
    data(){
      return{
        userInfo:''
      }
    },
    onLoad(){
      this.updateUserInfo()
    },
    computed:{
      comUserInfo(){
        return this.userInfo
      }
    },
    methods:{
      updateUserInfo(){//用户信息
        this.$http.get('integral/my/integral','','',false).then((res)=>{ 
            this.userInfo = res.data.data
        })
      },
    }
  }
</script>

<style scoped>
img{
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}
.applyName{
  position: absolute;
  /* top:43.32983%; */
  /* left:42.5%; */
  top:533rpx;
  left:290rpx;
  font-size:26rpx;
}
.applyName span{
  display: block;
  text-align: center;
  width: 160rpx; 
  text-overflow: ellipsis; 
  white-space: nowrap;
  overflow:hidden; 
}
</style>
